<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<title>FixedSplitter Test</title>

	<link href="../../../dijit/themes/tundra/tundra.css" rel="stylesheet"/>
	<link href="../themes/iphone/FixedSplitter.css" rel="stylesheet"/>

	<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>

	<script type="text/javascript">
		require([
			"dojo/_base/connect",
			"dojo/_base/window",
			"dojo/dom",
			"dojo/dom-class",
			"dojo/ready",
			"dijit/registry",
			"dojox/mobile/sniff",
			"dojox/mobile/parser",
			"dojox/mobile/FixedSplitter",
			"dojox/mobile/Container",
			"dojox/mobile/Pane",
			"dijit/Calendar"
		], function(connect, win, dom, domClass, ready, registry, has){
			var change = function() {
				var splitter = registry.byId("splitter1");
				var h = win.global.innerHeight || win.doc.documentElement.clientHeight;
				var w = win.global.innerWidth || win.doc.documentElement.clientWidth;
				splitter.set("orientation", h > w ? "V" : "H");
			};
			ready(function(){
				connect.connect(null, (win.global.onorientationchange !== undefined && !has('android'))
					? "onorientationchange" : "onresize", null, change);
				setTimeout(function(){
					change();
				}, 0);
			});
		});
	</script>

	<style type="text/css">
		html, body{
			width: 100%;
			height: 100%;
			padding: 0px;
			margin: 0px;
			overflow: hidden;
		}

		.mblFixedSplitterH > #pane2 {
			width: 240px;
		}
		.mblFixedSplitterV > #pane2 {
			height: 240px;
		}

		#cal {
			margin: 10px;
		}
	</style>
</head>
<body class="tundra">
	<div id="splitter1" data-dojo-type="dojox.mobile.FixedSplitter" data-dojo-props='variablePane:0'>
		<div id="pane1" data-dojo-type="dojox.mobile.Pane" style="background-color:yellow;">
			pane #1
		</div>

		<div id="pane2" data-dojo-type="dojox.mobile.Container" style="background-color:pink;">
			<div id="cal" dojoType='dijit.Calendar'></div>
		</div>
	</div>
</body>
</html>
